package com.hyway.delivergoods.controller;


import com.hyway.delivergoods.entity.Yard;
import com.hyway.delivergoods.service.YardService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 * ！！！！！！测试用！！！！！！！！！！！！！
 * @author lwx
 * @since 2021-01-14
 */
@RestController
@RequestMapping("/yard")
@Slf4j
public class YardController {
    @Autowired
    private YardService yardService;
    @GetMapping("")
    public void list(){
        List<Yard> list = yardService.list();
        log.info(list.toString());

    }

}

